test1.sh working after changing logic