how to setup struct bio