m-nakamura's codes