updated to bash script