attempted to convert raw numbers for an element matrix into categories of 1 to 10