chaning sed to use pipe repleace delim instead of slash