enforce max size constraint in maximizer