bug fixing recode for getting id_timespace procedure