Removed redundant param from recursive code