delete unwanted folders and add version parameters to create object method