changed the bash part a bit