fixing bug in deprecated array_separated