handle multi-coded problems