simulation methods created by Anton Westveld