updated get-temp ifelse statement to add default conversion function