killed useless function