hard find mode pseudocode