using gsed instead of sed