added functions to add objects to map
.