palette class added