markers bool to int [0, 1]