force "rising" variable to be 0 or 1