shorter and more minimal problem 2