added dict to fix referencing bug