working code with tooltip suggestion