refactoring finder
repeate
make repeat work with functions instead of values