re-added the missing condition in searchEntireRow