added some php code