adding spam calculations