deleted duplicate function definition