added new and sed command to the script