working on repositories functionality