done made the following changes kept the kmetrics enums private and made the name more concise used map lookup instead of static array search  there were only enum values when i started coding  that is why array was used instead of map got rid of metricsdevicemediatype since it is identical to devicemediatype except that devicemediamax was not defined 