bug where users were not being passed due to mixed up iterator