if n < 40 n_40 will be zero cause error