Bugfix/add var name to function prototype