added decoding function