added return statement for thd_debug