clean up compact_container query