lab6, unreadable code

it works anyway