fixed the recursive thingy