fixed shell scripts
Removed call-by-reference