marker function pulled out of initialize