fixed bug in 2 coloring method