this function also ravels instead of using axis=0
just an observation, no change of behavior in this PR, AFAICS