simplify refs