stream line code a bit in Reply
cast bearing to unsigned
add explicit cast
add explicit cast
stream line code a bit in Reply
add even more cast sanity