initial add-marker code