add some paring logic