removed a useless function