got turning functional for W and B