added enable pin control