bugfixes in lab4_top, still not working