added another implementation of mis