modifying algo role regexpx