working on angular repositories functions