debug for lab 7