matching data with resultset object.