matrix script