add rows selectively