adding pin control