refactored add_reputation answer M