update functions for calculation of motifs