added pallete feature