almost finished with major routines