add marker logic