change how dict values are set