updated and cleaning of php