modified shell script for SQA