update to avoid php warnings