implemented some Iterator methods