properly declare task state enumeration type