check for id in the right way