removed precondition from adapt.r