backend for hats