mmc & mmb functions added