minor changes to sed command