encoding directly done with constants.