implemented base functional for Repository