reverting back because we are changing the api in palettes.py