changed type multiarray type to unsigned short int