update syntax of function() to function ()