updated problem1