check for matrix added