improve again shell script