fixed w_l calculations