adaptation pipeline