revereted to struct.py