modifying terminal script