forgot to close dict