added functionality for markers