housing price index field added, refactored code