Revert "Misunderstanding of program logic"

This reverts commit 33c351b43fd20a86d624bcd5f3c728a595291832.