implemented FIMO to matrix script