implemented the loyalty report