already format the piece code