remove unused code and comments and new lines