move bool to templates