Clean matrix