implemented byte conversion methods