added byte conversion