changed useless function