rewrite the whole portfolio