matrix and source