added case where class' evenness is not specified