improve bash file