fixed php parsing errors