second draft
added marker functionality