added isid function