defer added for adding data