Revert "move change element function"

This reverts commit 990eea3748f6c42ed6a1f5ec39d613b3dc922c31.