changed typeMi to typeWp