using detection of markings