erasing unused functions