checking the unavailable ids