check for records existing