added ability for multiple DOs to end with one stmt