improved _id checker