find loops WIP