adaptable routine