re arrange adjace