Regulation of biosynthesis of secondary metabolites