fix more lab4 problems

fix additional lab04 code snippet issues