passing correct arrays to the trips hour factory