removed unused code, add 3x3 analysis