want to build my own power supply with pot ajustments

@retrolefty thank you that is a better idea i guess so do you know if this creates any heat or just less loss ?

Of course, even a switching regulator generates some amount of heat, almost all electronic circuits dissipate some amount of heat, otherwise they couldn't perform any real work. But that aside, most switching regulators work in the 80% to 90% efficiency range. To compare that to a linear regulator, that lets say you designed a 1 vdc to 24 vdc adjustable linear regulator with a 3 amp max output current. The efficiency rating will be inversely proportional to the output voltage setting and worst case would be if you set it to 1vdc out with a load resistance drawing 3 amps. The regulator would have to dissipate 23V X 3A or 69 watts of power to supply the 3 watts output power to the load (1V x 3A), that's 4.3% efficiency and a ton of heat to remove from the chip.

Lefty