removed printf from genbody