delete comments and unused functions