gota rid of php warnings