made detect color blocks consistent with current create.html