almost finished bash part