moved to main function in concordance.py