working on create repository function