deal with twig regression