modify handle_bonuses method