track back when gotten invalid arguments in function