Design of buck boost converter
Isnt there another way ?


You can always buy an off the shelf solution such as the LTC6992: -



Inside the chip is pretty much what you have described for what you believe is necessary for building one.