working on maps from json