added changes for the multiple pins