break Motif code up into motif and motif_l