problem accessing function arguments