checking for duplicate markers before adding