integrated with ADAM with Sort and Merge