Revert "unneeded code"

This reverts commit 04dfc61b16e3eb8c6aac4435b0221715f2a1a45e.