A remark on Hardy type inequalities with remainder terms