added pan as an object of a matrix device