working on matrix shared