Add logic to determine the conditions   and  delete a error value