revised, removed double iteration