lab7 stuff
doesnt work good enough