handle enum declaration