updated for bash script