copied distillate class