select after encoding