fixing general php warnings