rewrote all the color shit to improve performance