one sed instead of two