minor changes to sed