fixes to lab 6