put matrices inside