compute movement's connections