removed useless func