creating simulation