cleanup of function parameters