added color function