change sequence of sed