use bool type where appropriate