changed ksh to bash