add get id method.