each instead of for. now works.