backing up some piecwise stuff