added check for bill printout