added if statement for bootstrap classes