removing unused private
no need to pass index