modifications on reputation_system.php