avoid tautological error comparing enums to -1