added more php functions