odd behavior of temps inside a function call header; moved the temp outside and worked as expected