lab7: fix