can we define the enum in an appropriate common place and use it everywhere instead of bool?