made toByteArray private again