modified metropolis to work with new interface