wrote base bool implementation