using bash not sh