simplify generation of target dictionary