introduce a 2body bond function with callback, modified pair corr calc