duplication with repository function
update performance tests