added unset all to matrix