fixed issue with SED
added fix to non-gsed