make collection_mode local