improve code to reduce time cost