phi4 MC sim functions