change dividend to (len_seq - temp_lag - k + 1) and the test result