changed genmap back, not sure what it's actually supposed to do