removing non essentials