this  is the whole bash script i wrote