clean up master starting code