encoding probs