minor changes in motif tree problem