scrap using pi