check trailers in separate function