use bool type when appropriate