fixed bug in serialization matrix
added store result data for compare