1. refractor the structure. 2. merge multiclass