encoding for subject