don't use each, use foreach keys