feedback from Thomas: function with capital letter, use library for deltaR Calculation, move template function to header