tested output using test.sh - successful