added a few helper methods to repository, need to add their tests