avoid global calls when not required
export findNextItem