adding repo fn