move enum check for sample higher in the list