remove unused functions.