refactored simulations