added state enum to struct.h