minor change to portal code