change pairwise structure in calculate_energy