added some enum functions