splitting each line to form new array