added GM mode