fixed problems with simulate taking integers