add matrix dotp
change script