use bool instead of int