fixed handling of multiple function parameters