add collections to rewrite