changed classifier2 to allow both representations