renamed second solution