enable disable logic