updates with reduced code