4/13 finish check7. fix check6 compile errors