add auto find code