adding procedural php functions