implement bool type