adding for loops to home_space and system_info functions