- apply the correct decode / encode sequence