Optimized the cheating with non-invertable matrices