updated prepareData.php

Everything works until line 96