check old marked position, add classes