collecting ids