stopped to encode category