use color function