code to decode