extracting scaffolding base functions