created basic functions in php