added trailer function