use bool where appropriate