[SD] merge code.