add local variable defined by return type edge case