fixed type in Gillespie