lab3. need some hacks