level trigger mode and edgetrigger mode