moving sed command down