adapt to conditions