finish pipeline system, but encounter a candidate entity problem because I delet some lines