mb functions