fixed *ref to myref