removed useless function definitions