fixed id loop