modified php code