fix repository interface