added time period to trips and fixed loader