define b method