ugh fix copy text func