added deprecate_id function