working MNP simulation