using proper api calls for modifying markers