marker logic added