1d code