do this prior to appending to avoid dom manip