Trying to fix piping with Arrays