fixed calculating most_sign_bits