1ststep: cleaning data and sparse matrix