How to use consolidate correctly