check for function arguments