decode methods