added dict to rules