finish working on stats on pdf and sending them in emails