optimise performance, 10 times performance improved.