duplicate function

I probably messed up the pull request