quick fix on some bitwise shifting I overzealously goofed