refactor function name