removed unneeded function definition