auto fill the Piece code closes #9