remove trailing ?> so not to add extra whitespace