unused code to initialize components from context removed