remove non-essentials