multiarray done and seems to be working