sorting out associations