implemented map logic / rendering