bash script modified