using a set of candidate code words