added more functionality to ResultSet