lab5 remains some bugs