fixed error in processing