added new function: copy div