switched falling to rising