add matrix script