valid method, and optimize lookup record method