working on map controller