distance, ecc, energy library