cleanup apply