working with same id on different threads issue