don't modify input parameter (issue #1)