edited get_markers function to try and take in data dynamically