spelling fix on searchFunction