php corrections