modify pin initialization