changed from bin/sh to bin/bash