change the logic of QPB report