remove nonessentials