retransfered covbases.py