function call with pointer args working