updated report function with sets operation