char replaced by enum