just refactor function definition style