solved cache matrix on 24th August