final edit before sp