php warnings are fixed