readding buffer for jbytearray added second button for testing both methods