modified end joining condition