fixed bug pertaining to bash 3