holy hell its basically woking im an idiot and placed the iterator increment wrong