loop dictionary