some php functions added