This is confusing - on what is this logic based?