removed palette function