today i fixed bugs in gen_lab