extracting marker deletion logic to a function
extracting main layers object