init on peer structure