fixing the Ref again