Changed encode to decode for decode, twas a typo