modefied gmii_rec simulation