create error statement