added if statements in bash