probably should check that iter is not null?