Bootstrap divided to functions