Calculation along whole trajectory maybe working