refine using beans