changed from sh to bash