script takes BW into account