changed the bandwidth to bw from res