working on joint distributions