implementing repository initialization