extracted code