use -simulate- instead of loops