working on block inverse method