adjusted definition of piece_t