updated comments to prep_q_encoding()