delete comment and extra lines