Revert "divided appendTo in 3"

This reverts commit 718cb8f925b2ba124b94ab71d0e290b8fd70702c.