updated the model to use the environment variable for bucket