add setStatucGen to Path and APattern