now accepting float number of trajectories