added docstr
added mi stuff