removed y_stride variable