removed unnecessary bx, by, bw variables