updated max portal number