Dictionary filename needed outside if statement