create a decoder for nikki's encoder