changing enum to private visibility