added flapMap to Gen