finish coding until GPU liner search perfectly