capsule capsule distance fast computation added