refactored Delim problem