remove comments and debugging codes