shared-motif function added