AbstractPinProtocol: improved readbility of code, functionality
unchanged