pieces to piecesLeft
module.export fixed