Revert "remove redundant placement code"

This reverts commit 2c9ff9330f4ae28248d07afee004b2ff2a8a0391.