fixed issue with iterator, now able to call next for both features and labels