now passing enum as param