removing some redundancy from trip view