corrected Y decoding