adding new code to fix the loading snowflake