Passing to arrays instead of *