improved ghost selection performance