renamed onLoad function call