what factors to consider while purchasing a house