errors in extra.py fixed