RunSed function added

code little prettier