removed unused check function from enc.py