get id from name