refactor ffffound