removes unused functions