updating 2nd problem