fixing IRepository