remove old and unused functions