new join.cpp (order of index) and inl.cpp