use pickle instead of bytes and float