added ability to process pointers to enum as function parameter