Inline assignments in function calls always look like a mistake. You should assign these variables above the function call and pass them in.