check reture code existance