redirection function inserted
new copy