- fixed php function