simple ref passing