added 2nd problem