moved to more precise calculations in interaction.cpp