updated objectCreation.R file