changing to output a boolean