fixes byte casting issue. removes debug statetments