better array iterator style