Refined subprocessing, you can only use imap instead of map (since map moves through the whole iterator once, and thereby changes the trajectory item).