more updates to php code