fixed bugs in simulation gene code after BART has been ffwdd