fixed GMAP calculation by casting denimonator within root to double