convenience fn for byte arrays