changed enum parameters to simply passing int via .ordinal()