appendTo method