need to complete code for rewiring refinement inputs