added function select color