green lines problem solved by using unsigned chars