changed ward method to ward.D