error control finishing