second and cleanup