generating RSI_linear