moved cleared markers to just before locations loop