adding data creation and inster code