improving shell scripts
added optimize.sh