working through byte swapping