initializing arrays in function