fixed standards in tools.php