changed piece.piece memeber name to piece.data