removing parts of php