add file to matrix