removing useless func arguments