mess with color counting code