before merge
add before merge
finished select, need to work on scan and index