Removed redundant function

Wasn't necessary to return a new function