changed data type sent to byte array