I can’t understand the logic here