filing and scrapping of an object