deal with dirty data