edited extract_particles...forgot y z