bash because looping is different in sh