proper dict iteration