fix Warning: duplicate function definition