pass temp explicitly into get_ynu