bootstrap conditional means refactor