new colors and some runtime optimization