basic functionality of refine