modifications on template of generators BB