calc_stride fixed