get rid of mi function