removing unused functionss