discount and some pdf formatting