Code for iteration through collection adding markers working