adding method scopeJoinLayout