fixed appendTo to append