renamed color function