loop over dictionary using KO