added delim option