removed unused function definition