new function for set color