useless function removed