trying to fix up php mistake