rm unused functions