function refactor