refactor delim