add parens to addition to the right of bit shift to avoid compiler warning on Xcode5