extracting enum