adding if statement for trailer