return null if nothing found in the search
fix the printf error on search