add get and set to repository