remove duplication in fetch()