find has infinite loop