beginning of gmap