working with simple error control