consolidate except block