fixed bug which prevented using functions with multiple arguments!