remove garbage from core.php