refactored home_spec more concisely