made posterior decoding faster