commiting before end of class