removing uselessfunction