updates to match PHP version