clean up piece.rb