fixed multiple endpoints calculatie