clean the sparse data