adding pin parameters to debug print