refactor Interpret code