adding php functions