add pre analyze logic