home() function refactor