replacing with bash