refactor - remove a function that just calls to another function