writing subMatrix codes