updated changes in constructor of repository