changing method variable to bw.method