check if ids affected