added palette feature