..................fix error
Update function() to this.function() in provider