before search changes