use **out to make the pointer change