to add enum functions