use only one call to 'sed'