changed renametopre.php categorize function so not use so much ram