removing unused functions