modifies shell script