implemented seperate buffer for colors and handling of that