implementing rom search