remove useless calls and comments