added getRepository method