adjust conditions