clean up unused code
change reco algo for repository