added routines to calculate interactions - find bug!