added bootstrap and custom function