changed function() to function(*)