working scaffolding functionality