add merge and select helper