error control added