refactor gmap caller