1. modified shell script